import request from "@/utils/request";

const api_name = '/admins'

export default {
    //登录
    loginAdmin(name,password){
        return request({
            url: `${api_name}/${name}/${password}`,
            method:'post'
        })
    },
    //获取当前用户信息
    getAdminById(){
        return request({
            url: `${api_name}`,
            method:'get'
        })
    }

}
